complete string methods in javascript